{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "c7e26edf",
   "metadata": {},
   "outputs": [],
   "source": [
    "url = 'https://api-c.liepin.com/api/com.liepin.searchfront4c.pc-search-job'"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "3ba92e6c",
   "metadata": {},
   "outputs": [],
   "source": [
    "import requests"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "id": "f966ee82",
   "metadata": {},
   "outputs": [
    {
     "ename": "SyntaxError",
     "evalue": "invalid character '…' (U+2026) (533711668.py, line 2)",
     "output_type": "error",
     "traceback": [
      "\u001b[1;36m  Input \u001b[1;32mIn [12]\u001b[1;36m\u001b[0m\n\u001b[1;33m    \"data\":{mainSearchPcConditionForm: {city: \"050020\", dq: \"050020\", pubTime: \"\", currentPage: \"0\", pageSize: 40, key: \"\", suggestTag: \"\",…}\u001b[0m\n\u001b[1;37m                                                                                                                                           ^\u001b[0m\n\u001b[1;31mSyntaxError\u001b[0m\u001b[1;31m:\u001b[0m invalid character '…' (U+2026)\n"
     ]
    }
   ],
   "source": [
    "payload = {\n",
    "    \"data\":{mainSearchPcConditionForm: {city: \"050020\", dq: \"050020\", pubTime: \"\", currentPage: \"0\", pageSize: 40, key: \"\", suggestTag: \"\",…}\n",
    "city: \"050020\"\n",
    "compId: \"\"\n",
    "compKind: \"\"\n",
    "compName: \"\"\n",
    "compScale: \"\"\n",
    "compStage: \"\"\n",
    "compTag: \"\"\n",
    "currentPage: \"0\"\n",
    "dq: \"050020\"\n",
    "eduLevel: \"\"\n",
    "industry: \"\"\n",
    "jobKind: \"\"\n",
    "key: \"\"\n",
    "pageSize: 40\n",
    "pubTime: \"\"\n",
    "salary: \"20$40\"\n",
    "suggestTag: \"\"\n",
    "workYearCode: \"1$3\"\n",
    "            \n",
    "           }\n",
    "}"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "8246e987",
   "metadata": {},
   "outputs": [],
   "source": [
    "r = requests.post(url)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "b2dfc81b",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "200"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.status_code"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "d47f775e",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.12"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
